<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
class DataProvider
{
	public static function ExecuteQuery($sql)
	  { 
	       $connection=mysql_connect("localhost","root","vertrigo")or 
		  die("couldn't connect to server");
		  mysql_select_db("test",$connection);
		  mysql_query("set names 'utf8'");
		  $result=mysql_query($sql,$connection);
		  mysql_close($connection);
		  
		  return $result;  
	  }

	public static function ExecuteNonQuery($sql)
	  { 
	       $connection=mysql_connect("localhost","root","vertrigo")or 
		  die("couldn't connect to server");
		  mysql_select_db("test",$connection);
		  mysql_query("set names 'utf8'");
		  mysql_query($sql,$connection);
		  mysql_close($connection);	  
	}
}
?>
</body>
</html>